package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.SetmealDishDto;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.SetmealDish;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/25
 */
public interface SetmealService extends IService<Setmeal> {
    int getCountByCategoryId(Long categoryId);
    void addSetmeal(SetmealDto setmealDto);
    Page<SetmealDto> getSetmealPage(Integer page, Integer pageSize, String name);
    boolean deleteSetmeal(List<Long> ids);
    boolean setmealStatusByStatus(Integer status, List<Long> ids);
    SetmealDto querySetmealById(Long id);
    void editSetmeal(SetmealDto setmealDto);
    List<SetmealDto> setmealListApi(Setmeal setmeal);
    List<SetmealDishDto> setMealDishDetailsApi(Long setmealId);
}
